mtd: pxa3xx_nand: Correct offset calculation
authorKevin Smith <[email protected]>
Thu, 14 Jan 2016 16:01:38 +0000 (16:01 +0000)
committerScott Wood <[email protected]>
Fri, 12 Feb 2016 23:13:47 +0000 (17:13 -0600)
commit84caff35df0a399051171e4a05c6cbcadd919b64
tree906416eda7ad1b17ef94710baeb902e80426e248
parentb7d3e4a63580198237bdce989d5514476056ee16
mtd: pxa3xx_nand: Correct offset calculation

Correct some pointer math in initialization.  An offset was added
to a struct-typed pointer instead of one casted to a byte-size,
resulting in a much larger offset than intended.

Signed-off-by: Kevin Smith <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Luka Perkov <[email protected]>
Cc: Scott Wood <[email protected]>
drivers/mtd/nand/pxa3xx_nand.c